package team3;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import project2.AI.Player;

//GUI panel for showing the board, and for allowing human interaction
public class ReversiPanel implements GameListener, MouseListener
{
	private GameManager manager;

	public ReversiPanel(GameManager manager)
	{
		this.manager=manager;
		manager.registerGameListener(this);
		//also need to register mouse listener
	}

	public void gameStateUpdated(GameManager game)
	{
		//need to redraw the panel
	}

	public void nextPlayersTurn(GameManager game, Player currentPlayer)
	{
		//need to redraw panel to indicate new players turn
	}

	public void gameOver(GameManager game, Player winner)
	{
		//turn off mouse listening, draw results to screen
	}

	public void mouseClicked(MouseEvent e)
	{
		//if the currentPlayer AI is an instanceof Human,
		//	decode which block was pressed, and try to make that move
	}

	//unused portions of mouse listener
	public void mousePressed(MouseEvent e){}
	public void mouseReleased(MouseEvent e){}
	public void mouseEntered(MouseEvent e){}
	public void mouseExited(MouseEvent e){}
}
